#include "StdAfx.h"
#include "GetCurrentProgramPath_note.h"

void GetCurrentProgramPath_note(TCHAR* szResult)
{
    TCHAR PathTemp[MAX_PATH];
    GetModuleFileName(NULL,PathTemp,MAX_PATH);
    TCHAR * s = _tcsrchr(PathTemp, _T('\\'));
    if (s) s[1]=0;
    _stprintf(szResult, _T("%s"), PathTemp);
    return;
}
